/*
 * OnOffGenerator.h
 *
 *  Created on: 25-10-2013
 *      Author: Tomasz Lis
 */

#include "omnetpp.h"
#include "packet_m.h"
#ifndef ONOFFGENERATOR_H_
#define ONOFFGENERATOR_H_

class OnOffGenerator : public cSimpleModule {
public:
    cLongHistogram delaysOn;
    cOutVector delaysOnVector;
    int id;
    int lastPacketId;
    int lastSessionId;
    int destinationId;
    int classPriority;
    int a;
    int b;
    int c;
    simtime_t timeUnit;
    simtime_t lastPacketTime;
    OnOffGenerator();
    virtual ~OnOffGenerator();
    void initialize();
    virtual void handleMessage(cMessage *message);
    virtual void finish();
    Packet*  generatePacket(int dst, int classPriority);
};
Define_Module(OnOffGenerator);
#endif /* ONOFFGENERATOR_H_ */
